New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lz-schema

Package Overview
Dependencies
Maintainers
0
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lz-schema

LayerZ API schema validation library

  • 0.13.8
  • npm
  • Socket score

Version published
Weekly downloads
216
increased by232.31%
Maintainers
0
Weekly downloads
 
Created
Source

LayerZ Schema and Types

This repository contains the schema and types used in the LayerZ project. It provides type definitions and validation schemas for various entities used throughout the LayerZ API.

Table of Contents

  • Installation
  • Usage
  • License

Installation

To install the package, use npm:

npm install lz-schema

Usage

Here's an example of how to use the schemas and types in your project:

import { createCampaignSchema, CreateCampaignBody } from 'lz-schema';

const campaignData: CreateCampaignBody = {
  name: 'Summer Sale',
  from: (new Date('2025-06-01')).getTime(),
  to: (new Date('2025-06-30')).getTime(),
  priority: 1,
  workspaceId: '673517701433191f766ebfa4'
};

const validationResult = createCampaignSchema.safeParse(campaignData);

if (!validationResult.success) {
  console.error('Validation failed:', validationResult.error);
} else {
  console.log('Validation succeeded:', validationResult.data);
}

License

This project is licensed under the MIT License. See the LICENSE file for details.

Keywords

FAQs

Package last updated on 28 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc